//
//  OAViewExtension.h
//  OASDK_Works
//
//  Created by ChenJie on 3/29/20.
//  Copyright © 2020 Mist. All rights reserved.
//

#ifndef OAViewExtension_h
#define OAViewExtension_h

#import "UIView+OAPositionExtension.h"
#import "UIView+OAExtension.h"

#define OA_SCREEN_FRAME [UIScreen mainScreen].bounds
#define OA_SCREEN_SIZE OA_SCREEN_FRAME.size
#define OA_SCREEN_WIDTH OA_SCREEN_FRAME.size.width
#define OA_SCREEN_HEIGHT OA_SCREEN_FRAME.size.height

#define OA_STATUS_BAR_FRAME [UIApplication sharedApplication].statusBarFrame
#define OA_STATUS_BAR_HEIGHT CGRectGetHeight(OA_STATUS_BAR_FRAME)
#define OA_STATUS_BAR_BOTTOM CGRectGetMaxY(OA_STATUS_BAR_FRAME)

#define OA_NAVIGATION_BAR_FRAME self.navigationController.navigationBar.frame
#define OA_NAVIGATION_BAR_HEIGHT CGRectGetHeight(OA_NAVIGATION_BAR_FRAME)
#define OA_NAVIGATION_BAR_BOTTOM CGRectGetMaxY(OA_NAVIGATION_BAR_FRAME)

#endif /* OAViewExtension_h */
